#ifndef VISOBJ_H
#define VISOBJ_H
#include "Object.h"
#include "Factory.h"

using namespace std;

class VisableObject : public Object
{
private:
	void MakeSprite(float scale, sf::Vector2f startPos);
	
	const char* imageFilename;
protected:
	
	

public:
	VisableObject(sf::Vector2f startPos = sf::Vector2f(0, 0), sf::Vector2f startVel = sf::Vector2f(0, 0), const char* fileName = "images/defaultImage.png", float scaleIn = 1.0f, const char* objName = "default visable object") : Object(objName)
	{
		imageFilename = fileName;
		scale = scaleIn;
		MakeSprite(scaleIn, startPos);	
		pos = startPos;
		vel = startVel;
		Factory::AddObject(this);
	}
	
	float scale = 1.0f;
	sf::Sprite mySprite;
	void Render(sf::RenderWindow* window);
	void Update(float deltaT) {};
};


#endif // VISOBJ_H